#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START tar

reset_mtime tar tar/configure.ac
mkdir -p build/tar
cd build/tar
cat > config.cache <<-EOF
gl_cv_func_wcwidth_works=yes
gl_cv_func_btowc_eof=yes
ac_cv_func_malloc_0_nonnull=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_mbrtowc_null_arg1=yes
gl_cv_func_mbrtowc_null_arg2=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_wcrtomb_retval=yes
EOF
../../tar/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/tar

# RECIPE END tar
